package com.blb.exam.service.impl;

import com.blb.exam.common.entity.User;
import com.blb.exam.dao.UserDAO;
import com.blb.exam.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    @Override
    public User login(String username, String password) {
        return userDAO.selectByNameAndPassword(username,password);
    }

}
